package com.finalist.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.finalist.dao.DepartureDao;
import com.finalist.entity.Departure;
import com.finalist.service.DepartureService;

@Service("departureServiceImpl")
public class DepartureServiceImpl extends BaseServiceImpl<Departure, Long> implements DepartureService{
	
	@Resource(name = "departureDaoImpl")
	private DepartureDao departureDao;
	
	@Resource(name = "departureDaoImpl")
	public void setBaseDao(DepartureDao departureDao){
		super.setBaseDao(departureDao);
	}
	
	@Override
    @Transactional(readOnly = true)
    public boolean nameExists(String name)
    {
        return this.departureDao.nameExists(name);
    }
}
